package com.ruoyi.web.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 新闻（旧）对象 old_news
 *
 * @author drx
 * @date 2024-03-19
 */
@ApiModel("新闻（旧）")
public class OldNews extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private Long id;

    /**
     * 药品id
     */
    @Excel(name = "药品id")
    @ApiModelProperty("药品id")
    private Long drugId;

    /**
     * 问题标题
     */
    @Excel(name = "问题标题")
    @ApiModelProperty("问题标题")
    private String name;

    /**
     * 问题描述
     */
    @Excel(name = "问题描述")
    @ApiModelProperty("问题描述")
    private String content;

    /**
     * 摘要
     */
    @Excel(name = "摘要")
    @ApiModelProperty("摘要")
    private String remark;

    /**
     * 主图
     */
    @Excel(name = "主图")
    @ApiModelProperty("主图")
    private String icon;

    /**
     * 状态 0 未发布 1 已发布
     */
    @Excel(name = "状态 0 未发布 1 已发布")
    @ApiModelProperty("状态 0 未发布 1 已发布")
    private String state;

    /**
     * 浏览量
     */
    @Excel(name = "浏览量")
    @ApiModelProperty("浏览量")
    private Long hits;

    /**
     * 标题
     */
    @Excel(name = "标题")
    @ApiModelProperty("标题")
    private String webtitle;

    /**
     * 内容
     */
    @Excel(name = "内容")
    @ApiModelProperty("内容")
    private String description;

    /**
     * 关键词
     */
    @Excel(name = "关键词")
    @ApiModelProperty("关键词")
    private String keyword;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    @ApiModelProperty("创建人名称")
    private String createName;

    /**
     * 更新人名称
     */
    @Excel(name = "更新人名称")
    @ApiModelProperty("更新人名称")
    private String updateName;

    /**
     * 是否删除（0否；1是）
     */
    @ApiModelProperty("是否删除（0否；1是）")
    private String delFlag;

    private Date startTime;

    private Date endTime;

    /**
     * 疾病id
     */
    @ApiModelProperty("疾病id")
    private Long diseaseId;

    @ApiModelProperty("温馨提示")
    private String warmPrompt;

    @ApiModelProperty("参考资料")
    private String referenceMaterial;

    public String getWarmPrompt() {
        return warmPrompt;
    }

    public void setWarmPrompt(String warmPrompt) {
        this.warmPrompt = warmPrompt;
    }

    public String getReferenceMaterial() {
        return referenceMaterial;
    }

    public void setReferenceMaterial(String referenceMaterial) {
        this.referenceMaterial = referenceMaterial;
    }


    public Long getDiseaseId() {
        return diseaseId;
    }

    public void setDiseaseId(Long diseaseId) {
        this.diseaseId = diseaseId;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDrugId(Long drugId) {
        this.drugId = drugId;
    }

    public Long getDrugId() {
        return drugId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIcon() {
        return icon;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setHits(Long hits) {
        this.hits = hits;
    }

    public Long getHits() {
        return hits;
    }

    public void setWebtitle(String webtitle) {
        this.webtitle = webtitle;
    }

    public String getWebtitle() {
        return webtitle;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("drugId", getDrugId())
                .append("name", getName())
                .append("content", getContent())
                .append("remark", getRemark())
                .append("icon", getIcon())
                .append("state", getState())
                .append("hits", getHits())
                .append("webtitle", getWebtitle())
                .append("description", getDescription())
                .append("keyword", getKeyword())
                .append("createBy", getCreateBy())
                .append("createName", getCreateName())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateName", getUpdateName())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
